package org.example.exception;

public enum BizCodeEnum {
    ACCOUNT_NOT_EXIT(1048,"账号不存在"),
    ACCOUNT_EXIT(1049,"账号已存在"),
    EMAIL_ERROR(1050,"用户名或密码错误"),
    PASSWORD_ERROR(1051,"密码错误"),
    USER_NOT_EXIT(2001,"用户不存在"),
    PARENT_EXIT(2002,"家长已在家族"),

    Parent_NOT_EXIT(2003,"家长不存在"),
    SHOULD_NOT_BE_STUDENT(2004,"对方不应该为学生"),
    NO_CLAN(2004,"没有家族"),
    NO_IN_THIS_CLAN(2005,"不在这个家族"),
    PERMISSION_DENY(3000,"权限不够"),
    SEND_ID_ERROR(3001,"邀请者身份错误，请重试");
    private Integer code;
    private String msg;
    private BizCodeEnum(Integer code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
